<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ include file="/WEB-INF/jsp/heading.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
<head>
  <title><fmt:message key="title"/></title>
  <style>
    .error { color: red; }
    .field { width: 400px; }
    .datefield { width: 105px; margin-right:40px; }
    .textfield { width: 400px; height:150px; }
  </style>
</head>
<body>
<h1><fmt:message key="login.heading"/></h1>
<form:form commandName="login" method="post" name="login">
  <table width="90%" bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">
    <tr>
      <td align="right" width="20%">E-Mail Adresse</td>
        <td width="20%">
          <form:input path="email" cssClass="field"/>
        </td>
        <td width="60%">
          <form:errors path="email" cssClass="error"/>
        </td>
    </tr>
    <tr>
      <td align="right">Passwort</td>
        <td>
          <form:input path="password" cssClass="field"/>
        </td>
        <td>
          <form:errors path="password" cssClass="error"/>
        </td>
    </tr>
  </table>
  <br>
  <input type="submit" align="center" value="Anmelden">
</form:form>
<a href="<c:url value="hello.html"/>">Home</a>
</body>
</html>